import request from '@/utils/http'

export function searchClothesApi(name) {
  return request({
    url: '/goods/selectGoodsByName',
    method: 'get',
    params: { name }
  })
}

export function searchStoreApi(params) {
  return request({
    url: '/store/selectStoreList',
    method: 'get',
    params: params
  })
}

export function searchWholesalerApi() {
  return request({
    url: '/wholesaler/selectWholesalerList',
    method: 'get'
  })
}
export function searchWholesalerByNameApi(name) {
  return request({
    url: '/wholesaler/selectWholesalerByName',
    method: 'get',
    params: { name }
  })
}

export function searchFactoryApi() {
  return request({
    url: '/factory/selectFactoryList',
    method: 'get',
    params: {}
  })
}

export function searchFactoryByNameApi(name) {
  return request({
    url: '/factory/selectFactoryByName',
    method: 'get',
    params: { name }
  })
}

export function searchCorwdfuningApi(name) {
  return request({
    url: '/project/selectProjectList',
    method: 'get',
    params: { name }
  })
}



